import { $post, $get } from "@/utils/request";

//提交订单
export let addOrder= (params) => {
    return $post("/order/add", params )
  }

  
//修改订单状态
export let orderStatus= (params) => {
    return $post("/order/status", params )
  }

//查询不同状态下的订单
export let ordersList= (params) => {
    return $post("/order/list", params )
  }

//订单详情
export let detail= (params) => {
    return $get("/order/getByID", {params} )
  }

  // 每天的消费数据
  export let ymOrders= (params) => {
    return $post("/order/ym", params )
  }

  // 每月的消费数据
  export let monthOrders= (params) => {
    return $post("/order/monthData", params )
  }

